package com.zy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zy.entity.ZyRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
@Mapper
public interface ZyRoleMapper extends BaseMapper<ZyRole> {

    /**
     * 根据用户名查询角色
     * @param username
     * @return
     */
    Set<ZyRole> getRoleByUserName(String username);

}
